package com.lightheart.sphr.xiaobinggan.module.home.ui;


import android.content.Intent;
import android.view.View;

import com.lightheart.sphr.xiaobinggan.R;
import com.lightheart.sphr.xiaobinggan.base.BaseActivity;
import com.lightheart.sphr.xiaobinggan.utils.RxTimer;
import com.lightheart.sphr.xiaobinggan.view.ProgressBar;

/***
 *https://www.cnblogs.com/android-deli/p/10173791.html
 * */
public class AnimationActivity extends BaseActivity {

    @Override
    protected int getLayoutId() {
        return R.layout.activity_animation;
    }

    @Override
    protected void initInjector() {

    }

    @Override
    protected void initView() {
//        ProgressBar.show(getSupportFragmentManager());
//        RxTimer rxTimer = new RxTimer();
//        rxTimer.timer(2000, this::save);
    }

    private void save(long l) {
//        ProgressBar.dis();
    }

    /**
     * 启动另外一个Activity
     *
     * @param view
     */
    public void startNewActivity(View view) {
        startActivity(new Intent(this, AnimationTwoActivity.class));
        /**
         * 参数一：新的Activity MyActivity02 进入时的动画...
         * 参数二：当前自己的Activity 动起来的动画
         */
        overridePendingTransition(R.anim.activity_colse03, 0);
    }
}